package com.nenglai.common.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;

@Constraint(validatedBy = CompareDoubleValidator.class)    //具体的实现
@Target({ElementType.TYPE})
@Retention(java.lang.annotation.RetentionPolicy.RUNTIME)
@Documented
public @interface CompareDouble {
    String message() default "不相等";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};
    String value1();
    String value2();
}
